home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 102 / CD-ROM 102.iso / entrete / 3dcc-en / HTMLHelp.JSP / Js3Dcc.CHM / script.js < prev    next >
Encoding:
Text File  |  2000-05-21  |  8.3 KB  |  159 lines

  1. function AddTop(section,title) {
  2. var s;
  3. s="<TABLE width=100% height=57 cellpadding=0 cellspacing=0 border=0><TR><TD rowspan=2 width=63 height=57 style=\"background: url('left.gif')\" valign=top><IMG src=\"";
  4. s+=section+"-c.gif\" height=32 width=32 style=\"margin-left: 16px; margin-top: 13px; margin-right: 15px; margin-bottom: 12px\">";
  5. s+="</TD><TD height=38><IMG src=\"title.gif\" width=261 height=38></TD></TR><TR><TD height=19 style=\"background: rgb(255,96,0); color: white\"><B>";
  6. if (section=="su") s+="Setting it Up";
  7. if (section=="us") s+="Using 3DCC";
  8. if (section=="mm") s+="Making the Most";
  9. if (section=="cx") s+="Contacting JaSMiN";
  10. s+="  »  </B>"+title+"</TD></TR></TABLE>";
  11. document.write(s);
  12. }
  13.  
  14. function StartMain() {
  15. var s;
  16. s="<TABLE width=100% cellpadding=0 cellspacing=0 border=0 style=\"background: url('bk.gif') no-repeat fixed\"><TR><TD valign=top>";
  17. document.write(s);
  18. }
  19.  
  20. function EndMain(u1,u2,t1,t2) {
  21. var s;
  22. s="<P class=right><A href=\""+u1+".htm\"><B>";
  23. if (t1 == "") t1 = "« Previous";
  24. s+=t1+"</B></A>";
  25. if (u2 != "") {
  26. s+="  <A href=\""+u2+".htm\"><B>";
  27. if (t2 == "") t2 = "Next »";
  28. s+=t2+"</B></A>";
  29. }
  30. s+="<BR><BR></TD></TR><TR><TD height=19 style=\"background: rgb(255,96,0); color: white\" align=center><B>© 1998-2000 JaSMiN Co.</B></TD></TR></TABLE>";
  31. document.write(s);
  32. }
  33.  
  34. function ShowFiles() {
  35. Files.style.display='';
  36. }
  37.  
  38. function HideFigure() {
  39. FigureDisplayer.style.display = "none";
  40. }
  41.  
  42. function HideToolTip() {
  43. ToolTipDisplayer.style.display = "none";
  44. }
  45.  
  46. function ie5() {
  47. var ie5 = false;
  48. if (navigator.userAgent.indexOf('MSIE 5')>0) {ie5 = true} else {ie5 = false}
  49. return ie5;
  50. }
  51.  
  52.  
  53. function DisplayFigure(u,t,w,h) {
  54. FigureDisplayerContent.style.height=h;
  55. FigureDisplayerContent.style.width=w;
  56. FigureDisplayerContent.innerHTML = "<IMG src=\""+u+"\" width="+w+" height="+h+"><HR noshade color=#E0E0E0 size=1>"+t;
  57. }
  58.  
  59. function DisplayToolTip(t,w,h) {
  60. ToolTipDisplayerContent.style.height=h;
  61. ToolTipDisplayerContent.style.width=w;
  62. ToolTipDisplayerContent.innerHTML = t;
  63. }
  64.  
  65. function AddFigureDisplayer() {
  66. document.write("<TABLE id=FigureDisplayer cellpadding=5 style=\"background: rgb(255,255,225); border: 1px solid rgb(224,224,224)\" style=\"position: relative; left: 20; top: 20\"><TR><TD id=FigureDisplayerContent valign=top></TD></TR></TABLE><BR><BR><P><A href=\"javascript:history.go(-1)\"><B>½ Back</B></A>");
  67. }
  68.  
  69. function AddToolTipDisplayer() {
  70. document.write("<TABLE id=ToolTipDisplayer cellpadding=5 style=\"background: rgb(255,255,225); border: 1px solid rgb(224,224,224)\" style=\"position: relative; left: 20; top: 20\"><TR><TD id=ToolTipDisplayerContent valign=top style=\"text-align: justify\"></TD></TR></TABLE><BR><BR><P><A href=\"javascript:history.go(-1)\"><B>½ Back</B></A>");
  71. }
  72.  
  73. function tColorI() {
  74. what = window.event.srcElement;
  75. what.src = what.src.substring(0,(what.src.indexOf(".gif"))) + "-c.gif";
  76. desc.innerText = 'Setting it up';
  77. window.event.cancelBubble = true;
  78. }
  79.  
  80. function tRedI() {
  81. what = window.event.srcElement
  82. what.src = what.src.substring(0,(what.src.indexOf("-c.gif"))) + ".gif";
  83. desc.innerText = '';
  84. window.event.cancelBubble = true;
  85. }
  86.  
  87. function tColorS() {
  88. what = window.event.srcElement;
  89. what.src = what.src.substring(0,(what.src.indexOf(".gif"))) + "-c.gif";
  90. desc.innerText = 'Using';
  91. window.event.cancelBubble = true;
  92. }
  93.  
  94. function tRedS() {
  95. what = window.event.srcElement
  96. what.src = what.src.substring(0,(what.src.indexOf("-c.gif"))) + ".gif";
  97. desc.innerText = '';
  98. window.event.cancelBubble = true;
  99. }
  100.  
  101. function tColorT() {
  102. what = window.event.srcElement;
  103. what.src = what.src.substring(0,(what.src.indexOf(".gif"))) + "-c.gif";
  104. desc.innerText = 'Making the most';
  105. window.event.cancelBubble = true;
  106. }
  107.  
  108. function tRedT() {
  109. what = window.event.srcElement
  110. what.src = what.src.substring(0,(what.src.indexOf("-c.gif"))) + ".gif";
  111. desc.innerText = '';
  112. window.event.cancelBubble = true;
  113. }
  114.  
  115. function tColorE() {
  116. what = window.event.srcElement;
  117. what.src = what.src.substring(0,(what.src.indexOf(".gif"))) + "-c.gif";
  118. desc.innerText = 'Contacting JaSMiN';
  119. window.event.cancelBubble = true;
  120. }
  121.  
  122. function tRedE() {
  123. what = window.event.srcElement
  124. what.src = what.src.substring(0,(what.src.indexOf("-c.gif"))) + ".gif";
  125. desc.innerText = '';
  126. window.event.cancelBubble = true;
  127. }
  128.  
  129. var t_windir="<B><FONT class=O>%WINDIR%</FONT></B><HR noshade color=#E0E0E0 size=1>This term stands for the folder where your copy of Windows is installed. Usually it's <B>C:\\WINDOWS</B> or <B>C:\\WINNT</B> for Windows NT/Windows2000. You can open up <B>%windir%</B> folder, by clicking the <B>Start</B> button, choosing <B>Run</B> and then typing <B>%windir%</B> in the <B><U>O</U>pen...</B> field.";
  130.  
  131. function more(lnk) {
  132. var s = "";
  133. s = "<NOBR><A href=\""+lnk+"\"><B>More ╗</B></A></NOBR>";
  134. return s;
  135. }
  136.  
  137. var itn = new Array ("","<U>S</U>cheme menu","<U>C</U>olors menu","<U>V</U>iew menu","<U>H</U>elp Menu","Preview window","Preview window item description","Window element selector","<U>A</U>ctive Window checkbox","Color","RGB Color Value","Color Capture button","Tasks menu-button","Apply button","Close button")
  138.  
  139. var itd = new Array;
  140. itd [0] = "";
  141. itd [1] = "Contains commands for working with schemes. "+more("us6.htm")+"<BR><BR><B><U>L</U>oad</B> (CTRL+O) - Opens <B>Load scheme</B> window. "+more("us6.htm#sload")+"<BR><B><U>S</U>ave</B> (CTRL+S) - Saves current scheme; if no scheme was loaded, it will act as <B>Save as...</B> "+more("us6.htm#ssave")+"<BR><B>Save <U>A</U>s...</B> - Opens <B>Save scheme as...</B> window. "+more("us6.htm#ssave")+"<BR><B>Import from... ╗ Desktop Theme</B> - Opens <B>Open desktop theme</B> window. "+more("us7.htm");
  142. itd [2] = "Contains commands for working with colors.<BR><BR><B><U>A</U>pply</B> (Enter) - Applies current scheme to system.<BR><B><U>R</U>estore</B> (CTRL+Z) - Restores last known system color scheme.<BR><B>Re<U>f</U>resh</B> (F5) - Loads current system color scheme to 3DCC.<BR><B><U>C</U>apture</B> (CTRL+C) - Launches <B>Color Capture</B>. "+more("us5.htm");
  143. itd [3] = "Contains commands for manipulating view.<BR><BR><B><U>A</U>ctive Window</B> - Sets the preview window mode to Active Window.<BR><B><U>I</U>nactive Window</B> - Sets the preview window mode to Inactive Window.<BR><B><U>M</U>inimize 3DCC</B> (CTRL+M) - Minimizes 3DCC window to taskbar.<BR><B><U>C</U>lose 3DCC</B> (ALT+F4) - Closes 3DCC.<BR><B><U>O</U>ptions...</B> - Opens <B>3D Color Changer 3000 Options</B> window.";
  144. itd [4] = "Contains commands for using Help.<BR><BR><B><U>H</U>TMLHelp Topics</B> (F1) - Displays this Help file.<BR><B><U>A</U>bout 3DCC3000</B> - Displays additional 3DCC information<BR><B><U>R</U>egister Online!</B> - Opens <A href=\"http://jotenet.cjb.net//regwiz.htm\" target=\"_blank\"><B>Online Registration</B></A> webpage within your browser.<BR><B><U>E</U>-Mail JaSMiN</B> - Launches your e-mail program with a message to JaSMiN Co.<BR><B><U>J</U>aSMiN Website</B> - Opens <A href=\"http://jotenet.cjb.net\" target=\"_blank\"><B>Official JaSMiN Website</B></A> within your browser.";
  145. itd [5] = "Shows how the scheme will look like when you apply it.<BR>Also, you can select window element you want to change color of by simply clicking desired part of the preview window.";
  146. itd [6] = "Shows the name of window element you are hovering with your mouse. The name matches the name from the <B>Window element selector</B>. (This feature can be turned on/off in <B>3D Color Changer 3000 Options</B> dialog)";
  147. itd [7] = "Use this to select window element you want to change color of. Alternatively, and more intuitively you can use the <B>Preview window</B>.";
  148. itd [8] = "Toggles between Active Window and Inactive Window preview window modes.";
  149. itd [9] = "Shows the color of selected window element.";
  150. itd [10] = "Shows the RGB (Red-Green-Blue) value of selected window element.";
  151. itd [11] = "Launches <B>Color Capture<B>. "+more("us5.htm");
  152. itd [12] = "Contains commands for performing most frequently used tasks in 3DCC.";
  153. itd [13] = "Applies current scheme to system.";
  154. itd [14] = "Closes 3DCC.";
  155.  
  156. function ShowD(n) {
  157. var s = "<TABLE width=300 cellpadding=5 style=\"background: rgb(255,255,225); border: 1px solid rgb(224,224,224)\"><TR><TD valign=top style=\"text-align: justify\"><B><FONT class=O>"+itn[n]+"</FONT></B><HR noshade color=#E0E0E0 size=1>"+itd[n]+"</TD></TR></TABLE>";
  158. Desc.innerHTML=s;
  159. }